/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "基本类型.h"

#include <string>
#include <vector>



bool f_file_文件是否存在(const std::string& path);

bool f_file_路径是否为目录(const std::string& path);
bool f_file_创建目录(const std::string& path);
bool f_file_去路径空白字符(std::string& path);


std::string f_file_文件扩展名(const std::string& path);

std::string f_file_取无后缀文件名(const std::string& path);
std::wstring f_file_取无后缀文件名(const std::wstring& path);
std::wstring f_file_取宽字符无后缀文件名(const std::string& path);


std::string f_file_get路径(const std::string& fileName);




struct S_目录文件包 {
	std::vector<std::wstring> 目录;
	std::vector<std::wstring> 文件;
};

int32	f_file_get目录下所有文件(const std::string& dir, std::vector<std::string>& 目录文件名, std::string 扩展名顾虑 = "");
bool	f_file_get目录下所有文件名(const std::string& dir, S_目录文件包& 目录文件, std::string 扩展名过滤 = "");
void	f_file_get目录下所有文件名(const std::string& dir, S_目录文件包& 目录文件, const std::vector<std::string>& 扩展名过滤);
bool	f_file_get目录下所有目录名(const std::string& dir, S_目录文件包& 目录文件);







